package com.workcell.workdata.xthings.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.workcell.workdata.common.core.util.R;
import com.workcell.workdata.xthings.dto.XthingsTvVo;
import com.workcell.workdata.xthings.entity.CodeTvBox;

/**
 * 电视盒子二维码
 *
 * @author guogyu
 * @date 2023-03-01 15:15:50
 */
public interface CodeTvBoxService extends IService<CodeTvBox> {

    /**
     * 更新投放看板
     * @param boardVo
     * @return
     */
    Boolean updatePanel(XthingsTvVo.BoardVo boardVo);

    /**
     * 获取当前投放看板
     * @param deviceNo
     * @return
     */
    CodeTvBox getByDeviceNo(String deviceNo);


    /**
     * 获取绑定租户
     * @param deviceNo
     * @return
     */
    Long getBindRent(String deviceNo);

    /**
     * 解绑
     * @param deviceNo
     * @return
     */
    R unbindTenant(String deviceNo);
}
